import { reject } from "lodash"

function f1() {
  return new Promise(function(resolve, rejext) {
    setTimeout(function () {
      console.log(1)
      resolve('success')
      // reject('err')
    }, 0)
  })
}
f1().then(() => {
  console.log(2)
})


